package org.scala.javafx.geometry

import javafx.scene.Scene
import javafx.stage.Window

case class Point2D(x: Double, y: Double) {
}

object Point2D {
  def minOf(window: Window): Point2D = Point2D(window.getX(), window.getY())
  def minOf(scene: Scene): Point2D = Point2D(scene.getX(), scene.getY())
}
